# SET(CMAKE_VERBOSE_MAKEFILE TRUE)
SET(MINGW TRUE)
INCLUDE(FindPythonInterp OPTIONAL)

PROJECT(daodict)

# binary output dir
IF (WIN32) 
    SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/dist)
    SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/dist)
ELSE (WIN32)
    SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/dist/bin)
    SET(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/dist/bin)
ENDIF (WIN32) 

SET(BUILD_SHARED_LIBS ON)

IF (WIN32 OR APPLE)
    # do nothing
ELSE (WIN32 OR APPLE)
    ADD_SUBDIRECTORY(tools)
ENDIF (WIN32 OR APPLE)

ADD_SUBDIRECTORY(src)

